package com.lk.lkappearance.model;

import java.io.Serializable;
import java.util.Date;

/**
 * alarm_ledger
 * @author 
 */
public class AlarmLedger implements Serializable {
    /**
     * 报警id
     */
    private String alarmId;

    /**
     * 报警类别,取自字典表
     */
    private String alarmType;

    /**
     * 报警级别,取自字典表
     */
    private String alarmLevel;

    /**
     * 仪表id,取自仪表信息表
     */
    private String meterId;

    /**
     * 网络设备id.取自网络设备表
     */
    private String deviceId;

    /**
     * 报警开始时间
     */
    private Date alarmStartTime;

    /**
     * 报警结束时间
     */
    private Date alarmEndTime;

    /**
     * 处理意见
     */
    private String handlingOpinion;

    /**
     * 是否发送 0 否 1 是
     */
    private Integer isSend;

    /**
     * 发送时间
     */
    private Date sendTime;

    /**
     * 关联字典表,多人用逗号隔开
     */
    private String sendBy;

    private static final long serialVersionUID = 1L;

    public String getAlarmId() {
        return alarmId;
    }

    public void setAlarmId(String alarmId) {
        this.alarmId = alarmId;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public String getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmLevel(String alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    public String getMeterId() {
        return meterId;
    }

    public void setMeterId(String meterId) {
        this.meterId = meterId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public Date getAlarmStartTime() {
        return alarmStartTime;
    }

    public void setAlarmStartTime(Date alarmStartTime) {
        this.alarmStartTime = alarmStartTime;
    }

    public Date getAlarmEndTime() {
        return alarmEndTime;
    }

    public void setAlarmEndTime(Date alarmEndTime) {
        this.alarmEndTime = alarmEndTime;
    }

    public String getHandlingOpinion() {
        return handlingOpinion;
    }

    public void setHandlingOpinion(String handlingOpinion) {
        this.handlingOpinion = handlingOpinion;
    }

    public Integer getIsSend() {
        return isSend;
    }

    public void setIsSend(Integer isSend) {
        this.isSend = isSend;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getSendBy() {
        return sendBy;
    }

    public void setSendBy(String sendBy) {
        this.sendBy = sendBy;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AlarmLedger other = (AlarmLedger) that;
        return (this.getAlarmId() == null ? other.getAlarmId() == null : this.getAlarmId().equals(other.getAlarmId()))
            && (this.getAlarmType() == null ? other.getAlarmType() == null : this.getAlarmType().equals(other.getAlarmType()))
            && (this.getAlarmLevel() == null ? other.getAlarmLevel() == null : this.getAlarmLevel().equals(other.getAlarmLevel()))
            && (this.getMeterId() == null ? other.getMeterId() == null : this.getMeterId().equals(other.getMeterId()))
            && (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()))
            && (this.getAlarmStartTime() == null ? other.getAlarmStartTime() == null : this.getAlarmStartTime().equals(other.getAlarmStartTime()))
            && (this.getAlarmEndTime() == null ? other.getAlarmEndTime() == null : this.getAlarmEndTime().equals(other.getAlarmEndTime()))
            && (this.getHandlingOpinion() == null ? other.getHandlingOpinion() == null : this.getHandlingOpinion().equals(other.getHandlingOpinion()))
            && (this.getIsSend() == null ? other.getIsSend() == null : this.getIsSend().equals(other.getIsSend()))
            && (this.getSendTime() == null ? other.getSendTime() == null : this.getSendTime().equals(other.getSendTime()))
            && (this.getSendBy() == null ? other.getSendBy() == null : this.getSendBy().equals(other.getSendBy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAlarmId() == null) ? 0 : getAlarmId().hashCode());
        result = prime * result + ((getAlarmType() == null) ? 0 : getAlarmType().hashCode());
        result = prime * result + ((getAlarmLevel() == null) ? 0 : getAlarmLevel().hashCode());
        result = prime * result + ((getMeterId() == null) ? 0 : getMeterId().hashCode());
        result = prime * result + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
        result = prime * result + ((getAlarmStartTime() == null) ? 0 : getAlarmStartTime().hashCode());
        result = prime * result + ((getAlarmEndTime() == null) ? 0 : getAlarmEndTime().hashCode());
        result = prime * result + ((getHandlingOpinion() == null) ? 0 : getHandlingOpinion().hashCode());
        result = prime * result + ((getIsSend() == null) ? 0 : getIsSend().hashCode());
        result = prime * result + ((getSendTime() == null) ? 0 : getSendTime().hashCode());
        result = prime * result + ((getSendBy() == null) ? 0 : getSendBy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", alarmId=").append(alarmId);
        sb.append(", alarmType=").append(alarmType);
        sb.append(", alarmLevel=").append(alarmLevel);
        sb.append(", meterId=").append(meterId);
        sb.append(", deviceId=").append(deviceId);
        sb.append(", alarmStartTime=").append(alarmStartTime);
        sb.append(", alarmEndTime=").append(alarmEndTime);
        sb.append(", handlingOpinion=").append(handlingOpinion);
        sb.append(", isSend=").append(isSend);
        sb.append(", sendTime=").append(sendTime);
        sb.append(", sendBy=").append(sendBy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public AlarmLedger() {
    }

    public AlarmLedger(String alarmId, String alarmType, String alarmLevel, String meterId, String deviceId, Date alarmStartTime, Date alarmEndTime, String handlingOpinion, Integer isSend, Date sendTime, String sendBy) {
        this.alarmId = alarmId;
        this.alarmType = alarmType;
        this.alarmLevel = alarmLevel;
        this.meterId = meterId;
        this.deviceId = deviceId;
        this.alarmStartTime = alarmStartTime;
        this.alarmEndTime = alarmEndTime;
        this.handlingOpinion = handlingOpinion;
        this.isSend = isSend;
        this.sendTime = sendTime;
        this.sendBy = sendBy;
    }
}